package com.bringway.p2p.service.impl;

import java.util.List;
import java.util.Map;

import net.sf.json.JSONObject;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.bringway.p2p.dao.SysConfigDao;
import com.bringway.p2p.service.SysconfigService;

/**
 * 
 * @author qjy
 * @version 创建时间：2016年12月22日 下午5:30:42
 * @功能：系统配置
 */

@Service
@Transactional
public class SysconfigServiceImpl  implements SysconfigService{

	@Autowired
	private SysConfigDao sysConfigDao;
	@Override
	public List querySysConfig(JSONObject params) {
		return sysConfigDao.querySysConfig(params);
	}
	@Override
	public boolean insertSysconfig(Map<String, Object> paramMap) {
		return sysConfigDao.insertSysConfig(paramMap)>0;
	}
	@Override
	public boolean querySysID(String syskey) {
		return sysConfigDao.querySysID(syskey)>0?true:false;
	}
	@Override
	public boolean updateconfig(Map<String, Object> paramMap) {
		return sysConfigDao.updateConfig(paramMap)>0;
	}
	@Override
	public boolean deleteConfig(JSONObject parms) {
		int i= sysConfigDao.deleteConfig(parms);
		return i>0;
	}
}
